Q&A / How to get version and build version?
1 2 3 4
| func getVersion() -> String { let dict = NSBundle.mainBundle().infoDictionary return dict!["CFBundleShortVersionString"]! as! String }
|
1 2 3 4
| func getBuildVersion() -> String { let dict = NSBundle.mainBundle().infoDictionary return dict!["CFBundleVersion"]! as! String }
|